package edu.gj.demo;

/**
 * @author Simple
 * @date 2020/4/17 16:53
 */
public class MessageBean {

    /**
     * 消息类型
     * 0 心跳消息
     * 1 链接初始化消息
     * 2 系统分发消息
     * 3 点对点消息
     */
    private int type;
    /**
     * 用户名  发给系统初始化信息的时候用到
     */
    private String userName;

    /**
     * 消息发送者
     */
    private String sender;
    /**
     * 消息接受者
     */
    private String to;
    /**
     * 消息内容
     */
    private String content;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
